// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addApplyRecord POST /api/applyRecord/add */
export async function addApplyRecordUsingPost(
  body: API.ApplyRecordAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/applyRecord/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteApplyRecord POST /api/applyRecord/delete */
export async function deleteApplyRecordUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/applyRecord/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editApplyRecord POST /api/applyRecord/edit */
export async function editApplyRecordUsingPost(
  body: API.ApplyRecordEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/applyRecord/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getApplyRecordVOById GET /api/applyRecord/get/vo */
export async function getApplyRecordVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getApplyRecordVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseApplyRecordVO_>('/api/applyRecord/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listApplyRecordByPage POST /api/applyRecord/list/page */
export async function listApplyRecordByPageUsingPost(
  body: API.ApplyRecordQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApplyRecord_>('/api/applyRecord/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listApplyRecordVOByPage POST /api/applyRecord/list/page/vo */
export async function listApplyRecordVoByPageUsingPost(
  body: API.ApplyRecordQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApplyRecordVO_>('/api/applyRecord/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyApplyRecordVOByPage POST /api/applyRecord/my/list/page/vo */
export async function listMyApplyRecordVoByPageUsingPost(
  body: API.ApplyRecordQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApplyRecordVO_>('/api/applyRecord/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateApplyRecord POST /api/applyRecord/update */
export async function updateApplyRecordUsingPost(
  body: API.ApplyRecordUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/applyRecord/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
